package Test.JVM.OOM;

/**
 * @author pengshuai
 * @date 2022/4/13 18:12
 */
public class RuntimeConstantPoolDemo {

    public static void main(String[] args) {

        String str1 = new StringBuilder("计算机").append("软件").toString();
        System.out.println(str1 == str1.intern());

        String str2 = new StringBuilder("ja").append("va").toString();
        System.out.println(str2 == str2.intern());

    }


}
